package com.tj.collection.controller.chatter.response;

import com.fqgj.common.api.ResponseData;
import com.kly.user.dto.UserInfoDto;
import com.tj.collection.db.domain.Admin;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * @author linqu
 */
@ApiModel(value = "teamMemberResp", description = "团长对应的chatter信息")
public class TeamMemberResponse implements ResponseData {

    @ApiModelProperty("chatter信息")
    private List<TeamMember> chatters;

    public List<TeamMember> getChatters() {
        return chatters;
    }

    public TeamMemberResponse setChatters(List<TeamMember> chatters) {
        this.chatters = chatters;
        return this;
    }


    public static TeamMemberResponse.TeamMember getTeamMember(Admin o) {
        TeamMember teamMember = new TeamMember();
        teamMember.setAdminId(o.getId());
        teamMember.setName(o.getName());
        return teamMember;
    }



    public static class TeamMember {

        @ApiModelProperty("账号ID")
        private Long adminId;

        @ApiModelProperty("名称")
        private String name;

        public TeamMember() {
        }

        public Long getAdminId() {
            return adminId;
        }

        public void setAdminId(Long adminId) {
            this.adminId = adminId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
